@*
 *Author：jxx
 *Contact：283591387@qq.com
 *Date：2018-07-01
 * 此代码由框架生成，请勿随意更改
 *@
@{
    Layout = "~/Views/Shared/ManagerLayout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <title></title>
</head>
<body>
    <div style=" padding: 0px 5px 0px 2px; height: 100%;">

        <div id="lay-search-panel" class="panel lay-panel" style=" margin-bottom: 5px;border:0px;">
        </div>
        <div id="lay-reslut" class=" lay-reslut ">
            <table id="dataGrid"></table>
        </div>
    </div>
</body>
</html>





<script>
    
    var searchData = [[{"columnType":"string","dataSource":[],"displayType":"","text":"标题","require":false,"id":"Title"},{"columnType":"string","dataSource":[],"displayType":"","text":"联系人","require":false,"id":"Contact"},{"columnType":"string","dataSource":[],"displayType":"","text":"电话","require":false,"id":"PhoneNo"}],[{"columnType":"string","dataSource":[],"displayType":"","text":"公司","require":false,"id":"Company"},{"columnType":"string","dataSource":[],"displayType":"","text":"创建人","require":false,"id":"Creator"},{"columnType":"datetime","dataSource":[],"displayType":"datetime","text":"集采提交时间","require":false,"id":"CreateDate"}]];
    var editData = [];


    var gridParameters = {
        loadMsg: '数据正在加载。。。。',
        //rownumbers: true,
        pageSize: 30,
        pageList: [10, 20, 30, 50, 80, 100, 200, 500, 1000],
        height: 340,
        key:'Id',
        url: '/vProcurementCustomer/GetPageData',
        nameSpace:'',
        queryParams: {TableName:'vProcurementCustomer',sort:'Id',Foots:' ',Wheres:'{}'},
        pagination: true,
        striped:true,
        fileLink:false,
        richText:false,
        hasSection:false,
        cnName:'我的集采视图',
        calculateHeight:{id:'#lay-search-panel'},
        calculateWidth:{id:'#lay-search-panel',totalWidth:1590,totalCol:12},
    frozenColumns: [[
     { field: 'ck', checkbox: true }
    ]],
    //showFooter: true,
        columns: [[{field:'Id',title:'主键ID',datatype:'int',width:80,hidden:true,require:true,align:'left'},
                       {field:'Procurement_Id',title:'集采Id',datatype:'int',width:80,hidden:true,require:true,align:'left'},
                       {field:'Title',title:'标题',datatype:'string',width:220,align:'left',sortable:true},
                       {field:'Price',title:'价格',datatype:'decimal',width:90,require:true,align:'left'},
                       {field:'Unit',title:'计量单位',datatype:'string',width:90,align:'left'},
                       {field:'Qty',title:'集采数量',datatype:'int',width:80,require:true,align:'left'},
                       {field:'FileUrl',title:'图片',datatype:'string',width:220,formatter:function (val, row, index) { return $.fn.layOut('createImageUrl',{row:row,key:'FileUrl'})},align:'left'},
                       {field:'FileType',title:'文件类型',datatype:'int',width:80,hidden:true,require:true,align:'left'},
                       {field:'Enddate',title:'截止日期',datatype:'DateTime',width:150,hidden:true,require:true,align:'left',sortable:true},
                       {field:'OrderNo',title:'排序显示',datatype:'int',width:80,hidden:true,align:'left'},
                       {field:'ProductInfoUrl',title:'商品详情地址',datatype:'string',width:220,align:'left'},
                       {field:'Contact',title:'联系人',datatype:'string',width:80,require:true,align:'left'},
                       {field:'PhoneNo',title:'电话',datatype:'string',width:90,require:true,align:'left'},
                       {field:'Company',title:'公司',datatype:'string',width:220,require:true,align:'left'},
                       {field:'Creator',title:'创建人',datatype:'string',width:130,align:'left'},
                       {field:'CreateDate',title:'集采提交时间',datatype:'DateTime',width:150,align:'left',sortable:true},
                       {field:'CreateID',title:'CreateID',datatype:'int',width:90,require:true,align:'left'}]]
    };

    var $elementGrid;
    window.onload = function () {
        $elementGrid = $('#dataGrid').datagrid(gridParameters);
    }

    var $elementDetailGrid;
    var gridDetailParameters = '';
</script>
